home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 1621 < prev    next >
Encoding:
Text File  |  1996-08-06  |  985 b   |  40 lines

  1. Newsgroups: comp.lang.c++
  2. Path: cs.vu.nl!jalten
  3. From: jalten@cs.vu.nl (Alten JP)
  4. Subject: Re: What is "return value"?
  5. Nntp-Posting-Host: kits.cs.vu.nl
  6. References: <4csa1h$7i8_001@du.hku.hk>
  7. Sender: news@cs.vu.nl
  8. Organization: Fac. Wiskunde & Informatica, VU, Amsterdam
  9. Date: Thu, 11 Jan 1996 20:36:44 GMT
  10. X-Newsreader: TIN [version 1.2 PL2]
  11. Message-ID: <DL1AL9.6K8.0.-s@cs.vu.nl>
  12.  
  13. Michael J.C.C.Ngan (h9500624@hkusua.hku.hk) wrote:
  14. : All interested in c++,
  15. :                      
  16. :                      What is the "return value"? 
  17.  
  18. Would seem to be the value a function would return, like
  19. this:
  20.  
  21. int main(int,char**)
  22. {
  23.     return 0;
  24. }
  25.  
  26. Here the return value is zero, the type of the value is 
  27. "int".
  28.  
  29. Does that sound right?
  30.  
  31. Have Fun,
  32.  
  33. Jelle Paul
  34.  
  35. --
  36. +-------------------------------------------------------+
  37. | Jelle Paul Alten                |   jalten@cs.vu.nl   |
  38. | Vrije Universiteit Amsterdam    |                     |
  39. +-------------------------------------------------------+
  40.